package com.android.nodejs.livejs.models;

import java.io.Serializable;

public class User implements Serializable {
	private static final long serialVersionUID = 8527794913050966385L;
	private int id;
	private String fullName;
	private String email;
	private String birthday;
	private String password;
	private int gender;
	private String lastStatus;
	private String status;
	private String avatar;
	
	public User() {
	    super();
	}
	
	public User(int id, String userName, String avatar) {
        super();
        this.id = id;
        this.fullName = userName;
        this.avatar = avatar;
    }

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getGender() {
		return gender;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public String getLastStatus() {
		return lastStatus;
	}

	public void setLastStatus(String lastStatus) {
		this.lastStatus = lastStatus;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    public boolean equals(Object o) {
        if (o == null || (!(o instanceof User)))
            return false;
        else
            return (this.id == ((User) o).id);
    }
}
